﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.IO;
using ClumsyWordsPortableLibrary.ViewModel;
using System.Threading.Tasks;

namespace ClumsyWordsPortableLibrary.Shared
{
    public interface IFileStorage<T>
    {
        string ReadData(String targetFileName);

        void Delete(String targetFileName);

        void SaveDataToIsolatedStorage(T sourceData, String targetFileName);

        Task SaveAsync(T sourceData, String targetFileName);

        Task<T> LoadAsync(String targetfileName);

        Task DeleteFileAsync(String targetFileName);
    }
}
